<?php

namespace app\admin\model;

use think\Model;

class AdminRole extends Model
{
    public function getRole($adminId = 0){
        return self::where('admin_id',$adminId)->value('role_id');
    }
}
